package org.jeecg.modules.demo.pointcount.redis.thread.work;

import org.jeecg.modules.demo.pointcount.redis.consumer.SendAndStorageProcess;
import org.jeecg.modules.demo.userexist.entity.UserExistCountData;
import org.jeecg.modules.demo.userexist.service.IUserExistCountService;

/**
 * @Author yw
 * @Date 2021/3/26 15:00
 */
public class AddUserExistCountDataTask implements Runnable{

    private static SendAndStorageProcess sendAndStorageProcess;

    IUserExistCountService iUserExistCountService;

    private UserExistCountData data;


    public AddUserExistCountDataTask(IUserExistCountService iUserExistCountService, UserExistCountData data){
        this.data = data;
        this.iUserExistCountService=iUserExistCountService;
    }




    public AddUserExistCountDataTask(UserExistCountData data){
        this.data = data;
    }

    public void run() {
        this.iUserExistCountService.addUserExistCount(data);
    }
}
